package com.googlecode.npgame.graphics.shaders;

import android.opengl.GLES20;

/**
 * @author Josh (joshbruning)
 */
public class Shader {

  private int shader;

  public Shader(int type, String shaderCode) {
    this.shader = GLES20.glCreateShader(type);
    GLES20.glShaderSource(this.shader, shaderCode);
    GLES20.glCompileShader(this.shader);
  }

  public int toInt() {
    return this.shader;
  }
}
